<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>SCAU-UB-MARKET</title> 
<meta name="keywords" content="WebChat" />
<meta name="description" content="WebChat" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<script type="text/javascript" src="jquery-3.0.0.js"></script>
<link href="../css/login2.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/login.js"></script>

<script type="text/javascript">

$(document).ready(function() {

$('#loginb').click(function() {
		
		

		var  date = new Date().toTimeString().substr(0, 8);
		alert($("#u").val()+" 这里 :"+$("#p").val());
		/* $j.ajax({
			type: "POST",
    		url:"LoginServlet",
   			data: {"stuid":$("#u").val(), "password":$("#p").val()},
   			success: function(msg){
                // alert('信息','模板保存成功');
         },
         
   			
		}); */
		
		$.ajax({
        type: "POST",
        url: "UserServlet",
        data: {"stuid":$("#u").val(), "password":$("#p").val()},
        success: function(msg){ alert('信息','模板保存成功');},
        error: function(e) {alert('shibao','模板保存失败'+e);}
        
    });
		alert($("#u").val()+"nali  :"+date);
		return false;
		
		});


});
</script>
<script>"undefined"==typeof CODE_LIVE&&(!function(e){var t={nonSecure:"8123",secure:"8124"},c={nonSecure:"http://",secure:"https://"},r={nonSecure:"127.0.0.1",secure:"gapdebug.local.genuitec.com"},n="https:"===window.location.protocol?"secure":"nonSecure";script=e.createElement("script"),script.type="text/javascript",script.async=!0,script.src=c[n]+r[n]+":"+t[n]+"/codelive-assets/bundle.js",e.getElementsByTagName("head")[0].appendChild(script)}(document),CODE_LIVE=!0);</script></head>
<body data-genuitec-lp-enabled="fe" a-genuitec-file-id="wc2-15" data-genuitec-path="/ShareTour/WebRoot/login.jsp">
<h1 class="titile" data-genuitec-lp-enabled="false" data-genuitec-file-id="wc2-15" data-genuitec-path="/ShareTour/WebRoot/login.jsp">华农二手书交易平台<sup></sup></h1>

<div class="login" style="margin-top:10px;">
    
    <div class="header">
        <div class="switch" id="switch">
		    <a class="switch_btn_focus" id="switch_qlogin" href="javascript:void(0);" tabindex="7">快速登录</a>
			<a class="switch_btn" id="switch_login" href="javascript:void(0);" tabindex="8">快速注册</a><div class="switch_bottom" id="switch_bottom" style="position: absolute; width: 64px; left: 0px;"></div>
        </div>
    </div>    
  
    
    <div class="web_qr_login" id="web_qr_login" style="display: block; height: 235px;">    

            <!--登录-->
            <div class="web_login" id="web_login">
              
               
               <div class="login-box">
    
            
			<div class="login_form">
				<form action="register.jsp" name="loginform" accept-charset="utf-8" id="login_form" class="loginForm" method="post"><input type="hidden" name="did" value="0"/>
                <input type="hidden" name="to" value="reg"/>
		      		       <input type="hidden" name="did" value="0"/>
        		<div id="userCue1" class="cue"></div>
			   
                <div class="uinArea" id="uinArea">
                <label class="input-tips" for="u">学号：</label>
                <div class="inputOuter" id="uArea">
                    
                    <input type="text" id="u" name="username" class="inputstyle"/>
                </div>
                </div>
                <div class="pwdArea" id="pwdArea">
               <label class="input-tips" for="p">密码：</label> 
               <div class="inputOuter" id="pArea">
                    
                    <input type="password" id="p" name="p" class="inputstyle"/>
                </div>
                </div>
               
				<div style="padding-left:50px;margin-top:20px;">
				<input type="button" id="loginb" value="登 录" style="width:150px;" class="button_blue"/>
				<a href="#" class="zcxy" target="_blank">忘记密码</a>
				</div>
              </form>
           </div>
           
            	</div>
               
            </div>
            <!--登录end-->
  </div>

  <!--注册-->
    <div class="qlogin" id="qlogin" style="display: none; ">
   
    <div class="web_login">
    <form name="form2" id="regUser" accept-charset="utf-8"  action="register.jsp" method="post">
	      <input type="hidden" name="to" value="reg"/>
		      		       <input type="hidden" name="did" value="0"/>
        <ul class="reg_form" id="reg-ul">
        		<div id="userCue" class="cue">快速注册请注意格式</div>
				
				 <li>
                	
                    <label for="stuid"  class="input-tips2">学号：</label>
                    <div class="inputOuter2">
                        <input type="text" id="stuid" name="stuid" maxlength="16" class="inputstyle2"/>
                    </div>
                    
                </li>
                <li>
                	
                    <label for="user"  class="input-tips2">用户名：</label>
                    <div class="inputOuter2">
                        <input type="text" id="user" name="user" maxlength="16" class="inputstyle2"/>
                    </div>
                    
                </li>
                
                <li>
                <label for="passwd" class="input-tips2">密码：</label>
                    <div class="inputOuter2">
                        <input type="password" id="passwd"  name="passwd" maxlength="16" class="inputstyle2"/>
                    </div>
                    
                </li>
                <li>
                <label for="passwd2" class="input-tips2">确认密码：</label>
                    <div class="inputOuter2">
                        <input type="password" id="passwd2" name="passwd2" maxlength="16" class="inputstyle2" />
                    </div>
                    
                </li>
                
                <li>
                 <label for="qq" class="input-tips2">QQ号码：</label>
                    <div class="inputOuter2">
                       
                        <input type="text" id="qq" name="qq" maxlength="10" class="inputstyle2"/>
                    </div>
                   
                </li>
                
                <li>
                    <div class="inputArea">
                        <input type="button" id="reg"  style="margin-top:10px;margin-left:85px;" class="button_blue" value="同意协议并注册"/> 
                    </div>
                    
                </li><div class="cl"></div>
            </ul>
			</form>
           
   
    
    </div>
    <!--注册end-->
</div>

</body></html>